home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 051-075 / disk_075 / setfont / setfont.doc < prev    next >
Text File  |  1992-05-06  |  6KB  |  108 lines

  1.  
  2.                         SetFont 2.0
  3.  
  4.                 by Dave Haynie (Hazy)
  5.                         CIS:    76703,2047
  6.                         Usenet: {allegra,caip,ihnp4}!cbmvax!daveh
  7.                         Drink:  Guiness
  8.  
  9.  
  10.    BUSINESS (MUNDANE, BUT IMPORTANT):
  11.  
  12.         This program is written by me, Dave Haynie, as mentioned above.
  13. I have, however, placed it in the PUBLIC DOMAIN.  That, of course, means
  14. that you can do (almost) absolutely anything with it.  You may hack it
  15. to bits, include it with YOUR product, sell it, GIVE IT AWAY, or anything
  16. else you like.  Of course, since anyone else can also give it away, it
  17. would be foolish to stick your name on it and try to sell it.  I really
  18. would like everyone to give it away, nicely, without being mean about it.
  19. If you want to use it with your product, do that too, new products for
  20. the Amiga are generally a good thing for the entire Amiga community.  You
  21. can take bit and pieces and use them in your own programs, or the whole
  22. thing for that matter.  And if you really want to have fun, you can even
  23. IMPROVE this program, as its far from perfect, and give YOUR version
  24. away too, if you're so inclined.  That's about it for the (mundane)
  25. business section, let's get on to the (interesting) notes section.
  26.  
  27.  
  28. CHANGES FROM SetFont 1.0
  29.  
  30.         SetFont 2.0's main improvement is that it allows the individual
  31. font of a CLI window to be changed without changing the font of the entire
  32. WorkBench Screen.  The old SetFont would change the default font descriptor
  33. of the WorkBench screen, which is where most new programs get their fonts.
  34. This was useful in that a font so set would be inhereted by new WorkBench
  35. applications, like new CLIs, Word Processors, Terminal Programs, and just
  36. about anything run on the WorkBench Screen (as opposed to a custom screen).
  37. What the old version doesn't do is change JUST the font of the current CLI.
  38. The new version does this.  I've thrown in the capability to also change
  39. the default title font of the screen (based on the screen's RastPort);
  40. this isn't incredibly useful, but it was very little extra code in addition
  41. to the two more useful functions.
  42.  
  43. WHAT IT DOES
  44.  
  45.         This function changes the default fonts of the Amiga's WorkBench
  46. screen or an Amiga CLI window.  This allows programs like CLI, etc. to use a
  47. font other than one specified by Preferences.  This change isn't perfect, but
  48. it is useful.  The program is used as:
  49.  
  50.         SetFont [fontname [points [place]]
  51.  
  52. Where the "fontname" is a normal Amiga font, "points" is the font's point
  53. size, and place is currently one of:
  54.  
  55.         SCREEN          The WorkBench Screen, ala SetFont 1.0
  56.         TITLES          The WorkBench Screen's Titles
  57.         WINDOW          The current CLI window
  58.  
  59. Setting the screen will essentially set the default font for newly created
  60. windows.  Setting the title font will set the text displayed for window
  61. titles and things like that.  This will look really ugly and generally not
  62. work very well if it is set to a font taller than the current screen font.
  63. Finally, setting the WINDOW font will set only the font of the calling CLI
  64. window.  This will also clear the screen, which is required to fully set
  65. the font on an open console window.  If no place is supplied, all three
  66. fonts are set.  Examples are:
  67.  
  68.         SetFont                         (Displays current screen font)
  69.         SetFont ?                       (Displays help text)
  70.         SetFont topaz                   (Sets font "topaz 8" everywhere)
  71.         SetFont ruby 12                 (Sets font "ruby 12" everywhere)
  72.         SetFont topaz 11 SCREEN         (Sets font "topaz 11" on screen)
  73.         SetFont thin 7 TITLES WINDOW    (Sets font "thin 7" on CLI and titles)
  74.  
  75.         This program has a few limitations.  First of all, some programs
  76. don't support fonts other than the 80 column, 8x8 cell "topaz 8" font,
  77. which is a default ROM font.  If you're a 60 column user, you've probably
  78. experienced this before.  Its not a problem with the Amiga as a whole, since
  79. most of the system will adjust itself.  But it may be a problem with programs
  80. that have a fixed idea of what a font should look like.  Most 80 column fonts
  81. work with most applications, and an 80 column 8x8 font will work just about
  82. everywhere.  Some programs, like CLI for instance, have trouble with
  83. proportionally-spaced fonts.  This is a "bug" or "feature" of the Amiga
  84. text display software, which is doing large amounts of spacing when only
  85. one character in a proportional font is displayed at a time.  The best thing
  86. to do is try out the font you like.
  87.  
  88.         To use SetFont as a means of changing most of the default fonts
  89. during a session, insert it in your "s:Startup-Sequence" file, as:
  90.  
  91.         SetFont topaz 11
  92.         LoadWB
  93.         EndCLI >nil:
  94.  
  95. or something that (SetFont topaz 11 SCREEN TITLES would work just as well).
  96.  
  97.         One final problem is that some applications ask the WorkBench screen
  98. to close when they start up.  It'll close if there's nothing else open on it,
  99. but when it re-opens, it'll restart with the Preferences-selected font, not
  100. the SetFont selected font.  Of course, Preferences't support arbitrary fonts
  101. (which is why this program is even necessary).  Oh well, maybe in 1.3?  The
  102. simplest way to prevent this is to leave some kind of window open, which will
  103. prevent any other application from closing the WorkBench screen.  Of course,
  104. if you need the memory that closing the WorkBench screen gives you, this
  105. would not be a good thing to do.
  106.  
  107.  
  108.